package com.chen.spring.cloud.service.good.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.chen.entity.Goods;
import com.chen.spring.cloud.service.good.mapper.GoodsMapper;
import com.chen.spring.cloud.service.good.service.IGoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class GoodServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements IGoodService {

    @Autowired
    private GoodsMapper goodsMapper;

    @Override
    public Map<String, Object> getAttr(String tname, Integer goods_id) {
        return goodsMapper.getAttr(tname,goods_id);
    }
}
